package com.mingchuang.administrator.mingchuang.zip;

import com.hu.p7zip.ZipUtils;

public class ZipFileUtil {


    /**
     * 压缩文件  压缩到路径为MC/zip
     * @param fileName
     * @return
     */


    public static int compress(String fileName) {
        String comm = "";
        ZipUtils.executeCommand("7z a '/storage/sdcard0/360Download/4.7z/fghhg' '/storage/sdcard0/360Download/Logs'");

        return 0;
    }

    /**
     * 文件解压  解压路径为 MC/
     * @param fileName
     * @return
     */

    public static int decompress(String fileName){
        ZipUtils.executeCommand("7z x '/storage/sdcard0/MC/received/玉环互通主线桥.7z' '-o/storage/sdcard0/360Log/NetErrorAnalysisLog' -aoa");

        return 0;
    }

}


